package main

import (
	"fmt"
	"sync"
)

func main() {
	var m sync.Map
	m.Store("one", 1)
	m.Store("two", 2)
	m.Store("three", 3)
	tmp, exist := m.Load("one")
	fmt.Println(tmp, exist)
	m.Delete("two")
	m.Range(func(key, value any) bool {
		fmt.Printf("key: %v, value: %v\n", key, value)
		return true
	})
}
